<template>
    <fieldset>
        <legend>其他组件1</legend>
        <Modal :visible="isShow" @on-confirm="confirm" @on-cancel="cancel">
            <h1 slot="tip">通知</h1>
            <h3 slot="content">今天你快乐了吗</h3>
        </Modal>
        <button @click="openModal">点击显示模态框</button>
    </fieldset>
</template>
<script>
    import Modal from "./modal";
    import modalMix from './mixins/modal.js'
    export default {
        mixins: [modalMix],
        components:{
            Modal
        }
    }
</script>